From ec5fb675976df0b420b79a865f96050cdbc0a2cf Mon Sep 17 00:00:00 2001 From: Stefano Stabellini Date: Fri, 4 Feb 2011 18:29:55 +0000 Subject: [PATCH] libxl: fix console autoconnect with pygrub, by invoking xenconsole twice When using pygrub we have to connect to the console twice: once at the beginning to connect to pygrub and a second time after creating the pv console to connect to the guest's console. Signed-off-by: Stefano Stabellini Acked-by: Ian Jackson Committed-by: Ian Jackson --- tools/libxl/libxl_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index dc2621468e..3ee6672820 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -543,7 +543,7 @@ static int do_domain_create(libxl_ctx *ctx, libxl_domain_config *d_config, for (i = 0; i < d_config->num_pcidevs; i++) libxl_device_pci_add(ctx, domid, &d_config->pcidevs[i]); - if ( d_config->c_info.hvm && cb ) { + if ( cb && (d_config->c_info.hvm || d_config->b_info.u.pv.bootloader )) { if ( (*cb)(ctx, domid, priv) ) goto error_out; } -- 2.30.2